package com.varian.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author ben
 * @since 2024/8/12
 */
@Data
@Schema(title = "用户重置密码数据对象")
public class SysUserRestPasswordDTO {

    @Schema(title = "新密码")
    @NotBlank(message = "新密码不能为空")
    @Length(min = 6, max = 20, message = "新密码长度必须介于 6 和 20 之间")
    private String newPassword;
    @Schema(title = "旧密码")
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;
}
